import request from '@/utils/request'

// 查询竞赛分值列表
export function listContestScore(query) {
  return request({
    url: '/contest/contestScore/list',
    method: 'get',
    params: query
  })
}

// 查询竞赛分值详细
export function getContestScore(contestScoreId) {
  return request({
    url: '/contest/contestScore/' + contestScoreId,
    method: 'get'
  })
}

// 新增竞赛分值
export function addContestScore(data) {
  return request({
    url: '/contest/contestScore',
    method: 'post',
    data: data
  })
}

// 修改竞赛分值
export function updateContestScore(data) {
  return request({
    url: '/contest/contestScore',
    method: 'put',
    data: data
  })
}

// 删除竞赛分值
export function delContestScore(contestScoreId) {
  return request({
    url: '/contest/contestScore/' + contestScoreId,
    method: 'delete'
  })
}
